package com.lys.eduservice.testonetomore;

import com.lys.eduservice.entity.subject.SubjectVo;
import com.lys.eduservice.service.EduSubjectService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

/**
 * @author Lyyyys
 * @version 1.0
 * @date 2021/4/29 23:35
 */

@SpringBootTest
@RunWith(SpringRunner.class)
public class test1 {

    @Autowired
    private EduSubjectService eduSubjectService;

    @Test
    public void test(){
        List<SubjectVo> vos = eduSubjectService.findAllSubject();
        for (SubjectVo vo:vos) {
            System.out.println(vo);
        }
    }

}
